package com.freeLearning.boot.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.freeLearning.boot.system.model.bo.UserExpertiseBO;
import com.freeLearning.boot.system.model.entity.Dict;
import com.freeLearning.boot.system.model.entity.UserExpertise;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserExpertiseMapper extends BaseMapper<UserExpertise> {
    /**
     * 根据 userid 查询对应擅长领域
     * @param id
     * @return
     */
    List<UserExpertiseBO> getUserExpertise(Long id);

    Boolean deleteExpertiseByUserId(Long id);

    Boolean insertExpertise(Long id, List<Dict> expertiseCodes);
}
